@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

html,
body {
  font-size: calc(100vw / 1920 * 100);
}

.main-container {
  font-size: calc(100vw / 1920 * 10);
}

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, Microsoft YaHei, PingFang SC, Hiragino Sans GB, Arial, sans-serif;
}

.filter-container {
  // padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.searchHeader {
  padding-bottom: 20px;

}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto;
  flex-direction: column;

  > * {
    padding: 0 20px;

    &:first-child {
      padding-top: 20px;
    }

    &:last-child {
      padding-bottom: 20px;
    }
  }
}

.el-select,
.el-date-editor.el-input {
  width: 100%;
}

.el-image-viewer__close {
  color: #fff;
}

.el-dialog__body {
  max-height: 70vh;
  overflow: auto;
}

.el-input-number {
  width: 100%;
}

.el-message {
  .el-message__icon {
    font-size: 0.2rem;
  }
}

.el-cascader-panel {
  max-width: 15rem;
  max-height: 5rem;

  .el-cascader-node__label {
    overflow: visible;
  }

  .el-icon-arrow-right {
    right: -27%;
  }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.el-tooltip__popper {
  max-width: 500px;
}

.filters-col-view {
  margin: 0;
  padding: 0;

  li {
    list-style: none;
    margin-bottom: 5px;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

.primary {
  color: #409eff;
}

.success {
  color: #2edfa3;
}

.warning {
  color: #ffb61e;
}

.error {
  color: #ff461f;
}
